﻿--[[
    @Brief    WeGame登录消息描述
    @Author    jameszhai
    @Date    2017-05-18
--]]

wg_login_desc = 
{
    module_name = "wg_login",
    events = 
    {
        {
            c_event = 
            {
                {
                    id  = ierd_tgp.login_mgr.LOGIN_ON_SHOW_LOGIN,
                    callback = "TLoginCtrl.OnShowLogin"
                },
                {
                    id  = ierd_tgp.login_mgr.LOGIN_ON_KICK_OFF,
                    callback = "TLoginCtrl.OnShowKickOff"
                },
                {
                    id  = ierd_tgp.login_mgr.LOGIN_ON_SHOW_QRCODE,
                    callback = "TLoginCtrl.OnShowQRLogin"
                },
                {
                    -- 登陆tgp服务器是否成功
                    id = ierd_tgp.login_mgr.LOGIN_ON_LOGIN_SRV_STATE,
                    callback = 'TLoginCtrl.OnWGSvrState'
                },
                {
                    id  = ierd_tgp.login_mgr.LOGIN_ON_PASSGUARD_CHECK,
                    callback = "TLoginCtrl.OnPwdGuardChk"
                },
                {
                    id = ierd_tgp.personal_center.SEND_PALYER_INFO,
                    callback = "TLoginCtrl.OnSelfInfo"
                },    
                {
                    id = ierd_tgp.login_mgr.LOGIN_ON_ACCOUNT_UNREGISTER,
                    callback = "TLoginCtrl.OnAccountUnregister"
                },  
                {
                    id = ierd_tgp.login_mgr.LOGIN_ON_ACCOUNT_UNREGISTER_UPDATE_EXIT_TIME,
                    callback = "TLoginCtrl.OnAccountUnregisterUpdateExitTime"
                }
                
            },
            reg_service = 
            {
                {
                    id = 'service_login_model_get_uin',
                    callback = "TLoginCtrl.OnSvrGetUin"
                },
                {
                    id = 'i_service_get_login_ad_data',
                    callback = "TLoginCtrl.GetLoginAdData"
                },
            },
            listen_broadcast = {
                {
                    id = "Broadcast_Msg_SwitchUser",
                    callback = "TLoginCtrl.OnSwitchUserLogin"
                },
                {
                    id = "Broadcast_Msg_UpdateLoginViewAd",
                    callback = "TLoginCtrl.OnLoginADUpdate"
                }
            },

            lua_file = "wegame_login\\control.lua"
        },
    }
};

desc_mgr.add(wg_login_desc);